package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.Data;

/**
 * 书推荐语实体
 * 
 * @author wang
 */
// @JsonInclude(Include.NON_NULL) 对实体里面为null的值做过滤处理
@JsonInclude(Include.NON_NULL)
@Data
public class BookRecommend {

	@JsonIgnore
	private Integer id;
	/**
	 * 推荐语
	 */
	private String content;
	/**
	 * 书id
	 */
	@JsonIgnore
	private Integer book_id;
}
